package com.dc.designPattern._6_bridge.impl;

public abstract class Phone {

    /**
     * 组合品牌
     */
    private Brand brand;

    /**
     * 构造器
     * @param brand         品牌
     */
    public Phone(Brand brand) {
        this.brand = brand;
    }

    /**
     * 开机
     */
    protected void open(){
        this.brand.open();
    }

    /**
     * 关机
     */
    protected void close(){
        this.brand.close();
    }

    /**
     * 呼叫
     */
    protected void call(){
        this.brand.call();
    }
}
